package com.frank.fresh_mall.service;


import com.frank.fresh_mall.exception.FreshMallException;
import com.frank.fresh_mall.model.pojo.User;

public interface UserService {
    User selectUserById(Integer userId);

    void register(String userName, String password) throws FreshMallException;

    User login(String userName, String password) throws FreshMallException;

    void updateInformation(User user) throws FreshMallException;

    boolean checkAdminRole(User user);
}
